﻿namespace Traffic.Entity;

/// <summary>
/// 系统操作申请
/// </summary>
public partial class ApplyOperate
{
    public int Id { get; set; }

    /// <summary>
    /// 订单类型  0：购票订单  1：业务订单
    /// </summary>
    public int OrderType { get; set; }

    /// <summary>
    /// 记录创建时间
    /// </summary>
    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 申请人，对应SysAccount.ID
    /// </summary>
    public int ApplyUserId { get; set; }

    /// <summary>
    /// 申请人姓名
    /// </summary>
    public string? ApplyUserName { get; set; }

    /// <summary>
    /// 对应订单ID
    /// </summary>
    public int OrderId { get; set; }

    /// <summary>
    /// 操作类型  0：退款 1：转班次
    /// </summary>
    public int OperateType { get; set; }

    /// <summary>
    /// 审批该请求要用到的权限名称
    /// </summary>
    public string? RoleName { get; set; }

    /// <summary>
    /// 操作内容
    /// </summary>
    public string? OperaContent { get; set; }

    /// <summary>
    /// 审批人SysAccount.ID
    /// </summary>
    public int CheckUserId { get; set; }

    /// <summary>
    /// 审批人姓名
    /// </summary>
    public string? CheckUserName { get; set; }

    /// <summary>
    /// 审批时间
    /// </summary>
    public DateTime? CheckTime { get; set; }

    /// <summary>
    /// 申请人备注
    /// </summary>
    public string? ApplyRemarks { get; set; }

    /// <summary>
    /// 审批人备注
    /// </summary>
    public string? CheckerRemarks { get; set; }

    /// <summary>
    /// 申请状态  0：未审批    1：已完成审批   2：驳回申请
    /// </summary>
    public int ApplyState { get; set; }

    /// <summary>
    /// 状态  0：作废   1：正常（默认）
    /// </summary>
    public bool Status { get; set; }

    /// <summary>
    /// 是否需要修改订单 
    /// </summary>
    public bool ChangeOrder { get; set; }
}
